import { Controller, Get, Inject } from '@nestjs/common';
import { AppService } from './app.service';
import { NResponse } from '@type/response';
import { configure } from 'configure/configure.module'
@Controller()
export class AppController {
  constructor(
    private readonly appService: AppService,
    @Inject('DATABASE_CONFIGURE') private databaseConf: any
    ) {}

  @Get()
  getHello(): NResponse.IGet<any> {
    // const name: NResponse = ''
    return Promise.resolve({code: 200, data: {...this.databaseConf, ...configure}, msg: ''});
  }
}
